from rest_framework import routers
from django.urls import path, include
from apps.pay.wx.views import WxPayViewSet
from apps.pay.income.views import IncomePayViewSet
from apps.pay.financeForLessee.views import FinanceForLesseeViewSet


router = routers.DefaultRouter()
router.register('wx', WxPayViewSet, basename='wx')
router.register('incomes', IncomePayViewSet, basename='incomes')
router.register('financeForLessee', FinanceForLesseeViewSet, basename='financeForLessee')

appLabel = 'pay/'
urlpatterns = [
    path(appLabel, include(router.urls)),
    path(appLabel, include('apps.pay.order.urls')),
    path(appLabel, include('apps.pay.recordIncomes.urls')),
    path(appLabel, include('apps.pay.recordIncomesLocked.urls')),
]